

#ifndef _LOG2_CONFIG_H_
#define _LOG2_CONFIG_H_

#define LOG2_LEVEL_NONE       0
#define LOG2_LEVEL_ERR        1
#define LOG2_LEVEL_WRN        2
#define LOG2_LEVEL_INF        3
#define LOG2_LEVEL_DBG        4

#ifdef NDEBUG

#undef LOG2_CFG_LEVEL

#define LOG2_CFG_LEVEL		LOG2_LEVEL_NONE

#endif


#ifndef LOG2_CFG_LEVEL

#define LOG2_CFG_LEVEL       LOG2_LEVEL_DBG

#endif

#define LOG2_FILE_EN        1
#define LOG2_LINE_EN        1
#define LOG2_FUNC_EN        1
#define LOG2_TIME_EN		1

//ASCII控制码
// #define LOG2_CTRL_CLOSE							0										//关闭所有属性，恢复默认颜色
// #define LOG2_CTRL_HIGHLIGHT						1										//设置高亮
// #define LOG2_CTRL_UNDERLINE						2										//下划线 强调
// #define LOG2_CTRL_BLANK							3										//闪烁
// #define LOG2_CTRL_COUNTERVAIL					4										//反显

// #define LOG2_CTRL_CLEAR                         20                                      //清屏

#define LOG2_CTRL_RESET                "[0m"         // Reset to default colors
#define LOG2_CTRL_CLEAR                "[2J"         // Clear screen, reposition cursor to top left

 #define LOG2_CTRL_TEXT_BRIGHT_BLACK    "[1;30m"
 #define LOG2_CTRL_TEXT_BRIGHT_RED      "[1;31m"
 #define LOG2_CTRL_TEXT_BRIGHT_GREEN    "[1;32m"
 #define LOG2_CTRL_TEXT_BRIGHT_YELLOW   "[1;33m"
 #define LOG2_CTRL_TEXT_BRIGHT_BLUE     "[1;34m"
 #define LOG2_CTRL_TEXT_BRIGHT_MAGENTA  "[1;35m"
 #define LOG2_CTRL_TEXT_BRIGHT_CYAN     "[1;36m"
 #define LOG2_CTRL_TEXT_BRIGHT_WHITE    "[1;37m"


//	#define LOG2_LEVEL_COLOR_DBG   "\033[40;37m"
//	#define LOG2_LEVEL_COLOR_INF   "\033[40;32m"
//	#define LOG2_LEVEL_COLOR_WRN   "\033[40;33m"
//	#define LOG2_LEVEL_COLOR_ERR   "\033[40;31m"

#define LOG2_LEVEL_COLOR_DBG   LOG2_CTRL_TEXT_BRIGHT_WHITE
#define LOG2_LEVEL_COLOR_INF   LOG2_CTRL_TEXT_BRIGHT_GREEN
#define LOG2_LEVEL_COLOR_WRN   LOG2_CTRL_TEXT_BRIGHT_YELLOW
#define LOG2_LEVEL_COLOR_ERR   LOG2_CTRL_TEXT_BRIGHT_RED


#endif	//_LOG2_CONFIG_H_

